﻿<%@ Page Title="优惠管理" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="discount_manage.aspx.cs" Inherits="discount_manage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="label3" runat="server" Text="" />
    <asp:DataList ID="DataList1" runat="server" BackColor="White" 
        BorderColor="#999999" BorderStyle="None" BorderWidth="1px" CellPadding="3" 
        GridLines="Vertical" DataSource="<%#result%>" HorizontalAlign="Center"
        onitemcommand="DataList1_ItemCommand">
        <AlternatingItemStyle BackColor="#DCDCDC" />
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <ItemStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedItemStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <ItemTemplate>
        <div style="color:<%#DataBinder.Eval(Container.DataItem, "color") %>;margin-left:auto;_margin-right:auto">
            <div style="float:left;margin:10px;width:300px;"> 
             <asp:Image Width="300px" style="width:300px;" ID="Image1" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"d_image")%>' />
                <div style="position:relative;bottom:24px;line-height:24px;opacity:0.6;background-color:gray;width:300px;height:24px;text-align:center;font-family:'Microsoft YaHei UI';color:white;font-weight:bold;">
                    <%# DataBinder.Eval(Container.DataItem, "d_title")  %>
                </div>
            </div>
	    <div style="float:left;width:300px;">
            <div style="margin:10px;">
                <div style="margin-top:30px;">   
                    开始时间:<%# DataBinder.Eval(Container.DataItem, "d_start")  %></div>
                <div style="margin-top:30px;">
                    结束时间:<%# DataBinder.Eval(Container.DataItem, "d_end")  %></div>
                    
            </div>
	    <br />
            <div style="margin:10px;margin-top:30px;">
                优惠类型:<%# DataBinder.Eval(Container.DataItem, "d_type")  %></div>
            <br />
            <div style="margin:10px;margin-top:30px;">
                优惠比例:<%# DataBinder.Eval(Container.DataItem, "d_rate")  %></div>
	    <br />
            <div style="margin:10px;margin-top:30px;">
                是否VIP专属:<%# DataBinder.Eval(Container.DataItem, "d_vip")  %></div>
	    </div>
            <div style="float:left;margin:10px;margin-top:100px;;">
              <asp:Button ID="Button2" runat="server" Text="下架" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "d_id")%>' CommandName="undercarriage"/>
             <asp:Button ID="Button3" runat="server" Text="选择参与优惠的产品" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "d_id")%>' CommandName="oncarriage" /></div>
        </div>
        </ItemTemplate>
    </asp:DataList>
</asp:Content>
